package com.ambow.Entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table
public class StockMove extends ID implements Serializable{
 
	@ManyToOne(targetEntity=Cell.class)
	@JoinColumn(name="fromCell_id",referencedColumnName="id")
	private Cell fromCell;
	@ManyToOne(targetEntity=Cell.class)
	@JoinColumn(name="toCell_id",referencedColumnName="id")
	private Cell toCell;
	@ManyToOne(targetEntity=TextBook.class)
	@JoinColumn(name="textBook_id",referencedColumnName="id")
	private TextBook textBook;
	private int amount;
	@ManyToOne(targetEntity=Operator.class)
	@JoinColumn(name=" operator_id",referencedColumnName="id")
	private Operator operator;
	private String remark;
	private Date moveDate;
	public Cell getFromCell() {
		return fromCell;
	}
	public void setFromCell(Cell fromCell) {
		this.fromCell = fromCell;
	}
	public Cell getToCell() {
		return toCell;
	}
	public void setToCell(Cell toCell) {
		this.toCell = toCell;
	}
	public TextBook getTextBook() {
		return textBook;
	}
	public void setTextBook(TextBook textBook) {
		this.textBook = textBook;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
	public Operator getOperator() {
		return operator;
	}
	public void setOperator(Operator operator) {
		this.operator = operator;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getMoveDate() {
		return moveDate;
	}
	public void setMoveDate(Date moveDate) {
		this.moveDate = moveDate;
	}
	
	
	

	
	
}
